
export default function(_){
  _.fileUrl = (path)=>{
    return "https://www.slccltd.cn"+path;
  }

  _.UUID = function(){
    return Math.random().toString(32).replace(/0\./,'');
  }

  _.MOMENT = function(date){
    date = Number(date) || date;
    //
    let m = global.moment(date);
    if(m._isValid){
      return m;
    }else{
      return {
        _d:'',
        format:function(){
          return ""
        }
      };
    }
  }
}
